export class Node<T> {
    public item: T | null;
    public next: Node<T> | null;

    constructor (item?: T, next?: Node<T>) {
        this.item = item ? item : null;
        this.next = next ? next : null;
    }
}